@item-length: 120px;
@i-font-size: 40px;

.flex-header{
  font-size: 15px;
  font-weight: 600;
  color: #333;

  .header-item{
    display: inline-block;
    margin: 2px 20px;
  }
}

.flex {
  margin:5px 0;
  height: @item-length;
  background: #fefefe;
  padding: 8px 5px;
  border-radius: 4px;
  position: relative;
  box-shadow: inset 0 0 0 2px #eaeaea;
  margin-bottom: 30px;

  .prev {
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 100%;
    padding-left: 2px;
  }

  .next {
    position: absolute;
    right: 0;
    top: 0;
    width: 30px;
    height: 100%;
    padding-right: 2px;
  }

  .prev i, .next i {
    font-size: @i-font-size;
    margin-top: calc((@item-length - @i-font-size) / 2);
    color: #90dbec;

    &:hover {
      color: #17a2b8;
    }
  }

  .prev, .next {
    &:hover i{
      color: #17a2b8;
    }
  }

  .flex-pipe {
    width: auto;
    padding: 0 26px;
    height: 100%;
    overflow: hidden;
    display: flex;
  }


  .finish-component{
    background-color:#cdf1e5 !important;
  }


  .flex-component {
    align-items: center;
    transition: flex 0.5s, filter .2s, transform .2s;
    background-size: cover;
    background-position: center;
    flex: 1;
    background-color: #f3f3f3;
    margin: 2px 6px;
    padding: 10px;
    // border-radius: 5px;
    //text-align: center;
    align-items:center;//子元素垂直居中
    display:-webkit-flex;

    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

    .component-context{
      width: 100%;
    }

    .component__title{
      font-size: 1rem;
      font-weight: 600;
      color: #454545;
    }

    .component__role{
      margin-top: 8px;
      color: #666;
    }

    .component__type{
      color: #666;
    }
  }

  .component-active {
    //flex-grow: 1.5 !important;
    //filter: blur(0);
    box-shadow: inset 0 0 0 2px #34bfa3;
  }
}
